﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<link type="text/css" rel="stylesheet" href="../../Content/gallery/jquery.galleryview-3.0-dev.css" />
<script type="text/javascript" src="../../Scripts/jquery.galleryview-3.0-dev.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.timers-1.2.js"></script>
<script type="text/javascript">
    $(function () {
        $('#myGallery').galleryView(
        {
            transition_interval: 2000,
            autoplay: true,
            transition_speed: 600,
            show_filmstrip: false,
            panel_animation: 'slide',
            show_infobar: false,
            panel_width: 800,
            panel_height: 300,
            frame_width: 75,
            frame_height: 75,
        });
    });
</script>
<div id="Presentazione">
    <ul id="myGallery">

    <% foreach (MvcSite.Models.Foto foto in (List<MvcSite.Models.Foto>)ViewData["ListFoto"])
       {
    %>
           <li><img src="<%= foto.Path %>" alt="<%= foto.Nome %>""/></li>
        <asp:Image ImageUrl="<%= foto.Path %>" runat="server" />
        <%} %>
    </ul>
</div>